package com.java.dao;

import com.java.pojo.Maker2;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 * 销售订单的具体内容
 */
public interface Maker2Mapper {

    //外键查询
    List<Maker2> getMaker2ListByM1id(@Param("mid") Integer mid);

    /*添加*/
    int ADDMaker2(Maker2 maker2);

    int deleteMaker2(@Param("m1id") Integer m1id);

    //根据主键查询
    Maker2 getMaker2ByM2Id(@Param("id") Integer id);

    //删除
    int delMaker2ByM2Id(@Param("id") Integer id);

    //修改
    int updMaker2(Maker2 maker2);

    //根据主键查询
    Maker2 getMaker2(@Param("id") Integer a);

    //根据外键查询list集合,销售操作
    List<Maker2> getMaker2List(@Param("m1id") Integer id);

    //根据主键查询
    List<Maker2> getMaker2List2(@Param("id") Integer a);



    List<Maker2> getM2ByM1id(@Param("m1id") Integer m1id);



}
